import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Http from './plugins/http'
import Config from './config'
import Api from './api'
import Storage from './plugins/storage'
import Util from './plugins/util'
import Cache from './plugins/cache'
// import Sensors from './plugins/sensors'
import Bridge from './plugins/bridge'
import filters from './plugins/filters'
import * as Enums from './plugins/enums'
import { Toast } from "vant";
/**
 * toolbridge
 */
Vue.config.productionTip = false
Vue.prototype.$http = Http
Vue.prototype.$config = Config
Vue.prototype.$api = Api
Vue.prototype.$storage = Storage
Vue.prototype.$util = Util
Vue.prototype.$cache = Cache
// Vue.prototype.$sensors = Sensors
Vue.prototype.$bridge = Bridge
Vue.prototype.$filters = filters
Vue.prototype.$enums = Enums
Vue.prototype.$toast = Toast;
Vue.prototype.$back = () => window.history.back()
/**
 * debug
 */
if (Util.env.isTest() || Util.env.isProd()) new VConsole()
/**
 * wx.api
 */
import Wx from './plugins/wx'
if (Util.ua.isWx) Vue.prototype.$wx = Wx
/**
 * vant lazyload
 */
import {
	Lazyload
} from 'vant';
Vue.use(Lazyload, {
	lazyComponent: true
});
/**
 * style
 */
require('./assets/css/base.css')
require('lib-flexible')

new Vue({
	router,
	created() {
        
		// this.$storage.set('token','72c065281ba4bb279e15ee41c1174bd9')//可删除

        // this.$storage.set('ML_USER_INFO',{token:"72c065281ba4bb279e15ee41c1174bd9"})//可删除
	},
	render: h => h(App)
}).$mount('#app')